package com.knowledge.RMIService;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

/**
 * Created by mike on 2016/12/4.
 */
public class RMIService extends UnicastRemoteObject implements IRMIService{
    public RMIService() throws RemoteException {
    }

    public String sayHello() throws RemoteException{
        System.out.println("hello world");
        return "1";
    }
}
